home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 5.7 KB | 236 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SUCursor.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODStorageUnitCursor_xh
- #define SOM_ODStorageUnitCursor_xh
-
- class ODStorageUnitCursor;
-
- #define ODStorageUnitCursor_MajorVersion 1
- #define ODStorageUnitCursor_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODStorageUnitCursor_API
- #define ODStorageUnitCursor_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODStorageUnitCursor;
- class ODStorageUnit;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODStorageUnitCursorCClassData ODStorageUnitCursorClassData
- #define ODStorageUnitCursorNewClass(major,minor) somNewVersionedClassReference(ODStorageUnitCursor,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODStorageUnitCursorMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODStorageUnitCursor class object, and the methods it introduces. */
- SOMEXTERN struct ODStorageUnitCursorClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken reserved1;
- somMToken GetProperty;
- somMToken GetValueType;
- somMToken GetValueIndex;
- somMToken SetProperty;
- somMToken SetValueType;
- somMToken SetValueIndex;
- } SOMDLINK ODStorageUnitCursorClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODStorageUnitCursor_Class_Source) && !defined(SOM_Module_sucursor_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODStorageUnitCursorClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODStorageUnitCursor Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_GetProperty)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODPropertyName* propertyName);
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_GetValueType)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODValueType* valueType);
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_GetValueIndex)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODValueIndex* valueIndex);
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_SetProperty)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODPropertyName propertyName);
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_SetValueType)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODValueType valueType);
- typedef void (* SOMLINK somTD_ODStorageUnitCursor_SetValueIndex)(ODStorageUnitCursor *somSelf, Environment *ev,
- ODValueIndex valueIndex);
- }
-
- #endif /* ODStorageUnitCursor_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODStorageUnitCursor
- */
- class ODStorageUnitCursor : public ODObject
- {
- public:
-
- // ODStorageUnitCursor::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODStorageUnitCursor, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODStorageUnitCursor);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODStorageUnitCursor);
- #endif
- }
-
- // ODStorageUnitCursor::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: GetProperty */
- void GetProperty(Environment *ev,
- ODPropertyName* propertyName)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,GetProperty)
- (this,ev,propertyName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetValueType */
- void GetValueType(Environment *ev,
- ODValueType* valueType)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,GetValueType)
- (this,ev,valueType);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetValueIndex */
- void GetValueIndex(Environment *ev,
- ODValueIndex* valueIndex)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,GetValueIndex)
- (this,ev,valueIndex);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: SetProperty */
- void SetProperty(Environment *ev,
- ODPropertyName propertyName)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,SetProperty)
- (this,ev,propertyName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: SetValueType */
- void SetValueType(Environment *ev,
- ODValueType valueType)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,SetValueType)
- (this,ev,valueType);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: SetValueIndex */
- void SetValueIndex(Environment *ev,
- ODValueIndex valueIndex)
- {
- SOM_ResolveD(this,ODStorageUnitCursor,ODStorageUnitCursor,SetValueIndex)
- (this,ev,valueIndex);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* ODStorageUnitCursor */
-
-
-
- #endif /* SOM_ODStorageUnitCursor_xh */
-